[NET] front: The receive buffer accounting should be unsigned to avoid
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 09:05:32 +0000 (10:05 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 09:05:32 +0000 (10:05 +0100)
range comparison issues.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index e939df23412c161f20b4e13b58e546b24bc0633b..c096cc6a0dc132402e7c59b1292a884de1e36015 100644 (file)
@@ -100,7 +100,7 @@ struct netfront_info {
 #define RX_MIN_TARGET 8
 #define RX_DFL_MIN_TARGET 64
 #define RX_MAX_TARGET min_t(int, NET_RX_RING_SIZE, 256)
-       int rx_min_target, rx_max_target, rx_target;
+       unsigned rx_min_target, rx_max_target, rx_target;
        struct sk_buff_head rx_batch;
 
        struct timer_list rx_refill_timer;